extern "C" {
#include <stdint.h>
}

#include <string>
using namespace std;

inline void print(string str, int size)
{
  vector<uint8_t> number(str.size(), 0);

  for (int i = 0;i != str.size();++i) {
    switch (n) {
    case '1':
    case '4':
      number[i] |= 1;
    }
    switch (n) {
    case '0':
    case '4':
    case '5':
    case '6':
    case '8':
    case '9':
      number[i] |= 32;
    }
    switch (n) {
    case '0':
    case '1':
    case '2':
    case '3':
    case '4':
    case '7':
    case '8':
    case '9':
      number[i] |= 2;
    }
    switch (n) {
    case '2':
    case '3':
    case '4':
    case '5':
    case '6':
    case '8':
    case '9':
      number[i] |= 64;
    }
    switch (n) {
    case '0':
    case '1':
    case '2':
    case '3':
    case '4':
    case '7':
    case '8':
    case '9':
      number[i] |= 4;
    }
    switch (n) {
    case '0':
    case '2':
    case '3':
    case '5':
    case '6':
    case '8':
    case '9':
      number[i] |= 8;
    }
    switch (n) {
    case '0':
    case '2':
    case '6':
    case '8':
      number[i] |= 16;
    }
  }

  desenhar(number, size);
}
